home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / g_man / cat3 / OpenGL / glortho.z / glortho
Encoding:
Text File  |  2001-04-17  |  6.6 KB  |  154 lines

  1.  
  2.  
  3.  
  4. ggggllllOOOOrrrrtttthhhhoooo((((3333GGGG))))                    OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee                    ggggllllOOOOrrrrtttthhhhoooo((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ggggllllOOOOrrrrtttthhhhoooo - multiply the current matrix with an orthographic matrix
  10.  
  11.  
  12. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  13.      void ggggllllOOOOrrrrtttthhhhoooo( GLdouble _l_e_f_t,
  14.                    GLdouble _r_i_g_h_t,
  15.                    GLdouble _b_o_t_t_o_m,
  16.                    GLdouble _t_o_p,
  17.                    GLdouble _n_e_a_r,
  18.                    GLdouble _f_a_r )
  19.  
  20.  
  21. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  22.      _l_e_f_t, _r_i_g_h_t Specify the coordinates for the left and right vertical
  23.                  clipping planes.
  24.  
  25.      _b_o_t_t_o_m, _t_o_p Specify the coordinates for the bottom and top horizontal
  26.                  clipping planes.
  27.  
  28.      _n_e_a_r, _f_a_r   Specify the distances to the nearer and farther depth
  29.                  clipping planes.  These values are negative if the plane is
  30.                  to be behind the viewer.
  31.  
  32. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  33.      ggggllllOOOOrrrrtttthhhhoooo describes a transformation that produces a parallel projection.
  34.      The current matrix (see ggggllllMMMMaaaattttrrrriiiixxxxMMMMooooddddeeee) is multiplied by this matrix and
  35.      the result replaces the current matrix, as if ggggllllMMMMuuuullllttttMMMMaaaattttrrrriiiixxxx were called
  36.      with the following matrix as its argument:
  37.  
  38.  
  39.  
  40.  
  41.  
  42.                       (                                      )
  43.                                  2__________
  44.                       |                       0           0        t  |
  45.                             right-left                         x
  46.                       |                                      |
  47.  
  48.                       |                       2__________               |
  49.                             0                           0        t
  50.                       |                  top-bottom             y |
  51.  
  52.                       |                                      |
  53.                                                        -2________
  54.                       |      0            0                  t  |
  55.                                                    far-near   z
  56.                       |                                      |
  57.  
  58.                       |     0           0          0      1  |
  59.  
  60.                       (                                     )
  61.  
  62.      where
  63.                                                   right + left____________
  64.                                 t  = -
  65.                                  x    right - left
  66.  
  67.                                                   top + bottom____________
  68.                                 t  = -
  69.                                  y    top - bottom
  70.  
  71.                                                  far + near__________
  72.                                  t  = -
  73.                                   z    far - near
  74.  
  75.  
  76.  
  77.      Typically, the matrix mode is GGGGLLLL____PPPPRRRROOOOJJJJEEEECCCCTTTTIIIIOOOONNNN, and (_l_e_f_t, _b_o_t_t_o_m,  -_n_e_a_r)
  78.      and (_r_i_g_h_t, _t_o_p,  -_n_e_a_r) specify the points on the near clipping plane
  79.      that are mapped to the lower left and upper right corners of the window,
  80.      respectively, assuming that the eye is located at (0, 0, 0).  -_f_a_r
  81.  
  82.  
  83.  
  84.                                                                         PPPPaaaaggggeeee 1111
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91. ggggllllOOOOrrrrtttthhhhoooo((((3333GGGG))))                    OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee                    ggggllllOOOOrrrrtttthhhhoooo((((3333GGGG))))
  92.  
  93.  
  94.  
  95.      specifies the location of the far clipping plane.  Both _n_e_a_r and _f_a_r can
  96.      be either positive or negative.
  97.  
  98.      Use ggggllllPPPPuuuusssshhhhMMMMaaaattttrrrriiiixxxx and ggggllllPPPPooooppppMMMMaaaattttrrrriiiixxxx to save and restore the current matrix
  99.      stack.
  100.  
  101. EEEERRRRRRRROOOORRRRSSSS
  102.      GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ggggllllOOOOrrrrtttthhhhoooo is executed between the
  103.      execution of ggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of ggggllllEEEEnnnndddd.
  104.  
  105. AAAASSSSSSSSOOOOCCCCIIIIAAAATTTTEEEEDDDD GGGGEEEETTTTSSSS
  106.      ggggllllGGGGeeeetttt with argument GGGGLLLL____MMMMAAAATTTTRRRRIIIIXXXX____MMMMOOOODDDDEEEE
  107.      ggggllllGGGGeeeetttt with argument GGGGLLLL____CCCCOOOOLLLLOOOORRRR____MMMMAAAATTTTRRRRIIIIXXXX
  108.      ggggllllGGGGeeeetttt with argument GGGGLLLL____MMMMOOOODDDDEEEELLLLVVVVIIIIEEEEWWWW____MMMMAAAATTTTRRRRIIIIXXXX
  109.      ggggllllGGGGeeeetttt with argument GGGGLLLL____PPPPRRRROOOOJJJJEEEECCCCTTTTIIIIOOOONNNN____MMMMAAAATTTTRRRRIIIIXXXX
  110.      ggggllllGGGGeeeetttt with argument GGGGLLLL____TTTTEEEEXXXXTTTTUUUURRRREEEE____MMMMAAAATTTTRRRRIIIIXXXX
  111.  
  112.  
  113. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  114.      ggggllllFFFFrrrruuuussssttttuuuummmm, ggggllllMMMMaaaattttrrrriiiixxxxMMMMooooddddeeee, ggggllllMMMMuuuullllttttMMMMaaaattttrrrriiiixxxx, ggggllllPPPPuuuusssshhhhMMMMaaaattttrrrriiiixxxx, ggggllllVVVViiiieeeewwwwppppoooorrrrtttt
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.                                                                         PPPPaaaaggggeeee 2222
  151.  
  152.  
  153.  
  154.